home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / libx11 / include / x11 / xaw / textsrcp.h < prev    next >
C/C++ Source or Header  |  1999-01-01  |  4KB  |  107 lines

  1. /*
  2. * $XConsortium: TextSrcP.h,v 1.18 91/02/20 17:58:06 converse Exp $
  3. */
  4.  
  5.  
  6. /***********************************************************
  7. Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
  8. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  9.  
  10.                         All Rights Reserved
  11.  
  12. Permission to use, copy, modify, and distribute this software and its 
  13. documentation for any purpose and without fee is hereby granted, 
  14. provided that the above copyright notice appear in all copies and that
  15. both that copyright notice and this permission notice appear in 
  16. supporting documentation, and that the names of Digital or MIT not be
  17. used in advertising or publicity pertaining to distribution of the
  18. software without specific, written prior permission.  
  19.  
  20. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  21. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  22. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  23. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  24. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  25. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  26. SOFTWARE.
  27.  
  28. ******************************************************************/
  29.  
  30. /* 
  31.  * TextSrcP.h - Private definitions for TextSrc object
  32.  * 
  33.  */
  34.  
  35. #ifndef _XawTextSrcP_h
  36. #define _XawTextSrcP_h
  37.  
  38. /***********************************************************************
  39.  *
  40.  * TextSrc Object Private Data
  41.  *
  42.  ***********************************************************************/
  43.  
  44. #include <X11/ObjectP.h>
  45. #include <X11/Xaw/TextP.h>    /* This source works with the Text widget. */
  46. #include <X11/Xaw/TextSrc.h>
  47.  
  48. /************************************************************
  49.  *
  50.  * New fields for the TextSrc object class record.
  51.  *
  52.  ************************************************************/
  53.  
  54. typedef struct _TextSrcClassPart {
  55.   XawTextPosition    (*Read)();
  56.   int            (*Replace)();
  57.   XawTextPosition    (*Scan)();
  58.   XawTextPosition       (*Search)();
  59.   void                  (*SetSelection)();
  60.   Boolean        (*ConvertSelection)();
  61. } TextSrcClassPart;
  62.  
  63. /* Full class record declaration */
  64. typedef struct _TextSrcClassRec {
  65.     ObjectClassPart     object_class;
  66.     TextSrcClassPart    textSrc_class;
  67. } TextSrcClassRec;
  68.  
  69. extern TextSrcClassRec textSrcClassRec;
  70.  
  71. /* New fields for the TextSrc object record */
  72. typedef struct {
  73.     /* resources */
  74.   XawTextEditType    edit_mode;
  75. } TextSrcPart;
  76.  
  77. /****************************************************************
  78.  *
  79.  * Full instance record declaration
  80.  *
  81.  ****************************************************************/
  82.  
  83. typedef struct _TextSrcRec {
  84.   ObjectPart    object;
  85.   TextSrcPart    textSrc;
  86. } TextSrcRec;
  87.  
  88. /************************************************************
  89.  *
  90.  * Private declarations.
  91.  *
  92.  ************************************************************/
  93.  
  94. typedef Boolean (*_XawBooleanFunc)();
  95. typedef int (*_XawIntFunc)();
  96. typedef XawTextPosition (*_XawTextPositionFunc)();
  97. typedef void (*_XawTextVoidFunc)();
  98.  
  99. #define XtInheritRead                 ((_XawTextPositionFunc) _XtInherit)
  100. #define XtInheritReplace              ((_XawIntFunc) _XtInherit)
  101. #define XtInheritScan                 ((_XawTextPositionFunc) _XtInherit)
  102. #define XtInheritSearch               ((_XawTextPositionFunc) _XtInherit)
  103. #define XtInheritSetSelection         ((_XawTextVoidFunc) _XtInherit)
  104. #define XtInheritConvertSelection     ((_XawBooleanFunc) _XtInherit)
  105.  
  106. #endif /* _XawTextSrcP_h */
  107.